var app = getApp(), api = require("../../api.js");

Page({
    data: {
      tel: '0731-85258110'
    },
    onLoad: function(e) {
      var that = this;
      that.setData({
        tel: e.tel
      });
      if (e.id == 'proposal'){
        wx.setNavigationBarTitle({
          title: '加盟咨询'
        });
      }else{
        wx.setNavigationBarTitle({
          title: '加盟咨询投诉建议'
        });
      }
    },
    callTel: function(e) {
      var that = this;
      var a = that.data.tel;
        wx.makePhoneCall({
            phoneNumber: a
        });
    },
    onReady: function() {},
    onShow: function() {},
    onHide: function() {},
    onUnload: function() {},
    onPullDownRefresh: function() {},
    onReachBottom: function() {},
    onShareAppMessage: function() {}
});